﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class groups_Default :Wozuji.Logic.PageLogin
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //加载用户信息
       
        
        DataSet ds = new DataSet();
        ds = Wozuji.DBUtility.DbHelperSQL.Query("select  c.member_friendName,c.member_face,team_id,a.team_name,a.team_logo,convert(varchar,a.team_createTime,21) as team_createtime ,a.team_description from team_t a,inteam_t b,member_t c where b.inteam_teamid=a.team_Id and c.member_id=b.inteam_userid and b.inteam_userid=" + Session["userid"].ToString());
        Repeater1.DataSource = ds.Tables[0].DefaultView;

        Repeater1.DataBind();
        selfGroupNum.Text = ds.Tables[0].Rows.Count.ToString();
        MemberName.Text = ds.Tables[0].Rows[0][0].ToString();
       
        face.ImageUrl = "/u/UserHeadImage/"+ds.Tables[0].Rows[0][1].ToString();

        //组群搜索targs
        //Wozuji.BLL.targs targs = new Wozuji.BLL.targs();
       // DataSet dstargs = targs.GetTop10List();
        //searchlast.DataSource = dstargs.Tables[0].DefaultView;
        //searchlast.DataBind();
        //群排行
        Wozuji.DAL.Team_t tm=new Wozuji.DAL.Team_t();
        Repeater2.DataSource = tm.GetTop10List();
        Repeater2.DataBind();

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        
    }
}
